<html>
<head>
<#include "common.ftl">
    <title>销售管理</title>
    <script type="text/javascript" src="${ctx}/js/common.js"></script>
    <script type="text/javascript" src="${ctx}/js/base.js"></script>
    <script type="text/javascript" src="${ctx}/js/producer.js"></script>

</head>

<body>
<table id="dg" class="easyui-datagrid" pagination=true
       toolbar="#tb" fit=true
       url="${ctx}/user/producer/queryProducerByParams">
    <thead>
    <tr>
        <th field='id0' checkbox=true></th>
        <th field='id'>供应商编号</th>
        <th field='producerName'>供应商名称</th>
        <th field='location'>地址</th>
        <th field='tel'>电话</th>
        <th field='createDate' formatter="formatDate">创建时间</th>
        <th field='updateDate' formatter="formatDate">更新时间</th>
        <th field='isValid' formatter="formatterIsValid">状态</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <a href="javascript:openAddProducerDrugDialog()" class="easyui-linkbutton"
       plain=true iconCls="icon-save">添加</a>
    <a href="javascript:openModifyProducerDialog()" class="easyui-linkbutton" plain=true iconCls="icon-edit">修改</a>
    <a href="javascript:deleteProducer()" class="easyui-linkbutton" plain=true iconCls="icon-remove">删除记录</a>
    <br/>
    <!-- 搜索条件配置 -->
    供应商名称:<input type="text" name="producerName" id="producerName"/>
    供应商ID：<input type="text" name="producerId" id="producerId"/>
</select>
    <a href="javascript:searchProducerByParams()" class="easyui-linkbutton"
       iconCls="icon-search">搜索</a>`
</div>


<div id="dlg" class="easyui-dialog" style="width: 400px;height: 300px"
     closed=true buttons="#bt">

    <form id="fm" method="post" >
        名称:<input name="producerName" type="text" required="required"/><br/>
        地址:<input name="location" type="text" required="required"/><br/>
        电话:<input name="tel" type="text" required="required"/><br/>
        <input name="id" id="id" type="hidden"/>
    </form>
</div>

<div id="bt">
    <a href="javascript:saveOrUpdateProducer()" class="easyui-linkbutton" iconCls="icon-save">保存</a>
    <a href="javascript:closeProducerDlg()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
</div>
</body>
</html>